using System;
using System.Collections.Generic;
using AnimatingHair.Entity;
using AnimatingHair.Entity.PhysicalEntity;

namespace AnimatingHair.Auxiliary
{
    class VoxelGridCell
    {
        internal int X, Y, Z;

        internal List<SPHParticle> Particles;
        internal List<Wall> Obstacles;

        public VoxelGridCell(int x, int y, int z)
        {
            Particles = new List<SPHParticle>();
            Obstacles = new List<Wall>();

            X = x;
            Y = y;
            Z = z;
        }

        public void RemoveElement( SPHParticle particle )
        {
            Particles.Remove( particle );
        }
        
        public void RemoveElement( Wall wall )
        {
            Obstacles.Remove(wall);
        }

        public void AddElement( SPHParticle particle )
        {
            Particles.Add( particle );
        }

        public void AddElement( Wall wall )
        {
            Obstacles.Add( wall );
        }
    }
}
